package today.rocky.memory.service;

import today.rocky.memory.domain.MemoryRecord;
import today.rocky.memory.domain.bo.MemoryParam;
import today.rocky.memory.domain.bo.MemorySearchParam;
import today.rocky.memory.domain.dto.MemoryRecordAddDTO;
import today.rocky.memory.domain.dto.MemoryRecordDTO;
import today.rocky.memory.exception.BusinessException;

import java.util.List;

/**
 * @author Rocky
 * @version 1.0
 * @date 2020/5/22 16:02
 * @description
 */
public interface MemoryRecordService {

	List<MemoryRecordDTO> searchMemoryList(MemorySearchParam param);

	MemoryRecordDTO getMemory(MemoryParam param) throws BusinessException;

	int saveRecord(MemoryRecordAddDTO memory);

	int saveRecord(MemoryRecordDTO memory);
}
